package Logic;

import java.util.LinkedList;
import java.util.List;


import javax.swing.ImageIcon;

import GUI.GUI;
import Models.Dice;
import Tiles.End;
import Tiles.Movement;
import Tiles.Tile;
import Rules.LuckyRoll;
import Rules.GameEnd;;

public class Main {

	private static GameEngine ge;
	
	public static void main(String[] args) {
		List<Dice> dices = new LinkedList<Dice>();
		
			dices.add(new Dice(6,"Dice 1"));

		ge = new GameEngine(dices);
		
						ge.addTile(new Start(0, 10, new ImageIcon("src/tilePic.png")));
				
									ge.addTile(new Tile(0, 10, new ImageIcon("src/tilePic.png")));
					
										ge.addTile(new Tile(0, 10, new ImageIcon("src/tilePic.png")));
						
											ge.addTile(new Movement(0, 10, new ImageIcon("src/portal.png", 3));
							
												ge.addTile(new Tile(0, 10, new ImageIcon("src/tilePic.png")));
								
													ge.addTile(new Tile(0, 10, new ImageIcon("src/tilePic.png")));
									
														ge.addTile(new Tile(0, 10, new ImageIcon("src/tilePic.png")));
										
															ge.addTile(new Tile(0, 10, new ImageIcon("src/tilePic.png")));
											
																ge.addTile(new Movement(0, 10, new ImageIcon("src/portal.png", -7));
												
																	ge.addTile(new Tile(0, 10, new ImageIcon("src/tilePic.png")));
													
																		ge.addTile(new Tile(0, 10, new ImageIcon("src/tilePic.png")));
														
																			ge.addTile(new End(0, 10, new ImageIcon("src/tilePic.png")));
															
																

			ge.addPlayer("Player1", new ImageIcon("blue.png"));
			ge.addPlayer("Player2", new ImageIcon("red.png"));

				ge.addBoardRule(
						new LuckyRoll(ge, 2, 6));
				);
				ge.addBoardRule(
						new GameEnd(ge, 2));
				);
		

		ge.gameReady();
		
		new GUI(ge);
	}
}
